package com.base.common.exception;


public class BizException extends RuntimeException {

    private int code = -1;  // 默认业务异常码，可自定义

    public BizException(String message) {
        super(message);
    }

    public BizException(int code, String message) {
        super(message);
        this.code = code;
    }

    public int getCode() {
        return code;
    }
}
